//
//  main.c
//  helloworld
//
//  Created by liuz on 2021/11/12.
//

#include <stdio.h>
#include <time.h>

clock_t start, stop;
double duration;

void printN(int N) {
    for (int i = 1; i <= N; i++) {
        printf("%d\n", i);
    }
}

int main(int argc, const char * argv[]) {
    start = clock();
    printN(100000);
    stop = clock();
    duration = ((double)(stop - start)) / CLOCKS_PER_SEC;
    printf("duration: %f\n", duration);
    return 0;
}
